
.my-posts-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.my-posts-container h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.post-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card h3 {
  padding: 15px 15px 0;
  margin: 0;
  color: #333;
}

.post-card p {
  padding: 10px 15px;
  color: #666;
  margin: 0;
}

.delete-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #ff4444;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.delete-btn:hover {
  background-color: #cc0000;
}